import java.util.ArrayList;

public abstract class Publisher {
	public ArrayList<Subscriber> observers = new ArrayList();
	abstract void push(Message message);
	public void register(Subscriber subscriber) {
		observers.add(subscriber);
		subscriber.update(this);
	}
}